package entity

type Dept struct {
	DeptId int64 `gorm:"column:dept_id;type:BIGINT;primary_key"" json:"dept_id"`

	DeptName string `gorm:"column:dept_name;type:VARCHAR(255)" json:"dept_name"`

	ParentId int64 `gorm:"column:parent_id;type:BIGINT" json:"parent_id"`

	Sort int `gorm:"column:sort;type:TINYINT" json:"sort"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Dept) TableName() string {
	return "depts"
}
